package ym.ecrm.core.common.util;

import java.util.LinkedList;
import java.util.List;

public class Node {
	private long id,parentId;
	private String text;
	boolean leaf;
	private List<Node> children = new LinkedList<Node>();
	
	public Node(){}
	
	public Node(long id, Long parentId, String text){
		this.id = id;
		this.parentId = parentId;
		this.text = text;
	}
	
	public long getId() {
		return id;
	}
	public void setId(long id) {
		this.id = id;
	}
	public long getParentId() {
		return parentId;
	}
	public void setParentId(long parentId) {
		this.parentId = parentId;
	}
	public String getText() {
		return text;
	}
	public void setText(String text) {
		this.text = text;
	}

	public List<Node> getChildren() {
		return children;
	}

	public void setChildren(List<Node> children) {
		this.children = children;
	}

	public boolean isLeaf() {
		return leaf;
	}

	public void setLeaf(boolean leaf) {
		this.leaf = leaf;
	}
}
